# -*- coding: utf-8 -*-

from fastapi import APIRouter, Depends
from sqlmodel import Session, select
from pydantic import BaseModel
from datetime import datetime

router = APIRouter(prefix="/api")

# HelloWorld响应模型
class HelloWorldResponse(BaseModel):
    message: str
    timestamp: datetime

# HelloWorld接口
@router.get("/hello", response_model=HelloWorldResponse)
async def hello_world():
    """返回HelloWorld消息和当前时间戳"""
    return {
        "message": "Hello World！欢迎使用empty_project_fastapi_uniapp API",
        "timestamp": datetime.now()
    }

# 在这里添加新的API路由 